﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="BlogFriendGroupEdit.ascx.cs"
    Inherits="Micronet.OpenWeb.OpenWeb.Admin.Views.Shared.Blog.BlogFriendGroupEdit" %>
<owc:OwDetailsView ID="BlgoFriendGroupdv" runat="server" AutoGenerateRows="False"
    DataKeyNames="BlogFriendGroupID" DataSourceID="BlgoFriendGroupOds" OwNotificationID=""
    EnableModelValidation="True">
    <Fields>
        <asp:TemplateField>
            <InsertItemTemplate>
                <fieldset>
                    <legend>
                        <owc:OwR ID="GeneralInfoOwR" runat="server" OwText="GeneralInfo"></owc:OwR>
                    </legend>
                    <div>
                        <table>
                            <tr>
                                <td>
                                    <owc:OwR ID="LanguageOwR" runat="server" OwText="Language"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwComboBox SkinID="owCombobox" ID="LanguageCodeCBB" runat="server" SelectedValue='<%# Bind("LanguageCode") %>'>
                                        <Items>
                                            <owct:RadComboBoxItem runat="server" Text="Tiếng Anh" Value="en-US" />
                                            <owct:RadComboBoxItem runat="server" Text="Tiếng Việt" Value="vi-VN" />
                                        </Items>
                                    </owc:OwComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="OwR1" runat="server" OwText="UserName" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <%--  <owc:OwComboBox ID="UserCbb" runat="server" DataTextField="UserName" DataValueField="UserID">
                                    </owc:OwComboBox>--%>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <fieldset>
                    <legend><span>
                        <owc:OwR ID="InfoLabelOwR" runat="server" OwText="InfoLabel"></owc:OwR>
                    </span></legend>
                    <div>
                        <table width="100%">
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="TitleLabelOwR" runat="server" OwText="Name"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="txtName" runat="server" Width="300px" OwDefaultValue=""
                                        OwUsedForEdit="False" Text='<%# Bind("Name") %>'>
                                    </owc:OwTextBox>
                                    <asp:RequiredFieldValidator Text="*" ID="RequiredFieldValidator1" runat="server"
                                        ErrorMessage=" <%$ OwR: TitleNotEmpty %>" ControlToValidate="txtName"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="ThumbImagesOwR" runat="server" OwText="ThumbImage"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwEditor ID="OwThumbImageEditor" runat="server" OwStoragePlace="Common" Style="position: relative;
                                        top: 0px; left: 0px;" OwEditorType="OnlyInsertImage" OwBindValue='<%# Bind("ThumbImage") %>'>
                                    </owc:OwEditor>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="ContentLabelOwR" runat="server" OwText="ContentLabel"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwEditor ID="Detailtxt" runat="server" OwStoragePlace="Common" Style="position: relative;
                                        top: 0px; left: 0px;" Content='<%# Bind("Description") %>'>
                                    </owc:OwEditor>
                                    <asp:RequiredFieldValidator Text="*" ID="RequiredFieldValidator3" runat="server"
                                        ControlToValidate="Detailtxt" ErrorMessage=" <%$ OwR: DetailNotEmpty %>"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="ParentIDOwR" runat="server" OwText="ParentID"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwComboBox ID="ParentIDCbb" runat="server" DataTextField="Name" DataValueField="BlogFriendGroupID"
                                        DataSourceID="BlogFriendGroupParentOds">
                                    </owc:OwComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="UserOwR" runat="server" OwText="UserName"></owc:OwR>
                                </td>
                                <td>
                                    <%--  <owc:OwComboBox ID="UserCbb" runat="server" DataTextField="UserName" DataValueField="UserID">
                                    </owc:OwComboBox>--%>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <br />
                <br />
                <br />
            </InsertItemTemplate>
            <EditItemTemplate>
                <fieldset>
                    <legend>
                        <asp:Localize ID="Localize2" Text="<%$ OwR:GeneralInfo %>" runat="server"></asp:Localize>
                    </legend>
                    <div>
                        <table width="100%">
                            <tr>
                                <td>
                                    <owc:OwR ID="LanguageOwR" runat="server" OwText="Language" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwComboBox SkinID="owCombobox" ID="LanguageCodeCBB" runat="server" SelectedValue='<%# Bind("LanguageCode") %>'>
                                        <Items>
                                            <owct:RadComboBoxItem runat="server" Text="Tiếng Anh" Value="en-US" />
                                            <owct:RadComboBoxItem runat="server" Text="Tiếng Việt" Value="vi-VN" />
                                        </Items>
                                    </owc:OwComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="UserOwR" runat="server" OwText="UserName" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <%--  <owc:OwComboBox ID="UserCbb" runat="server" DataTextField="UserName" DataValueField="UserID">
                                    </owc:OwComboBox>--%>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <fieldset>
                    <legend><span>
                        <owc:OwR ID="InfoLabelOwR" runat="server" OwText="InfoLabel"></owc:OwR>
                    </span></legend>
                    <div>
                        <table width="100%">
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="TitleLabelOwR" runat="server" OwText="TitleLabel"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="txtName" runat="server" Width="300px" OwDefaultValue=""
                                        OwUsedForEdit="False" Text='<%# Bind("Name") %>'>
                                    </owc:OwTextBox>
                                    <asp:RequiredFieldValidator Text="*" ID="RequiredFieldValidator1" runat="server"
                                        ErrorMessage=" <%$ OwR: TitleNotEmpty %>" ControlToValidate="txtName"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="ThumbImagesOwR" runat="server" OwText="ThumbImage"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwEditor ID="OwThumbImageEditor" runat="server" OwStoragePlace="Common" Style="position: relative;
                                        top: 0px; left: 0px;" OwEditorType="OnlyInsertImage" Content='<%# Bind("ThumbImage") %>'>
                                    </owc:OwEditor>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="ContentLabelOwR" runat="server" OwText="ContentLabel"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwEditor ID="Detailtxt" runat="server" OwStoragePlace="Common" Style="position: relative;
                                        top: 0px; left: 0px;" Content='<%# Bind("Description") %>'>
                                    </owc:OwEditor>
                                    <asp:RequiredFieldValidator Text="*" ID="RequiredFieldValidator3" runat="server"
                                        ControlToValidate="Detailtxt" ErrorMessage=" <%$ OwR: DetailNotEmpty %>"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="ParentIDOwR" runat="server" OwText="ParentID"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwComboBox ID="ParentIDCbb" runat="server" DataTextField="Name" DataValueField="BlogFriendGroupID" EmptyMessage="Rỗng" SkinID="OwComboBox">
                                       
                                    </owc:OwComboBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <br />
                <br />
                <br />
            </EditItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField ShowHeader="False">
            <EditItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    </owc:OwButton>
                    <owc:OwButton ID="EditUpdateThenCloseButton" runat="server" CommandName="Update"
                        Text='<%$OwR:Update %>' OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;
                    <owc:OwConfirmButton ID="EditDeleteButton" runat="server" CausesValidation="True"
                        CommandName="Delete" Text="<%$OwR:Delete %>" SkinID="OwConfirmButton">
                    </owc:OwConfirmButton>
                    &nbsp;<owc:OwButton ID="EditCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </EditItemTemplate>
            <InsertItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    <owc:OwButton ID="InsertInsertButton" runat="server" CommandName="Insert" Text="<%$OwR:Insert %>"
                        OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;<owc:OwButton ID="InsertCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </InsertItemTemplate>
        </asp:TemplateField>
    </Fields>
</owc:OwDetailsView>
<owc:OwObjectDataSource ID="BlgoFriendGroupOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwBlogFriendGroupsEntity"
    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
    SelectMethod="OwGetEntity" TypeName="Micronet.OpenWeb.Com.BLL.OwBlogFriendGroupsBLL"
    UpdateMethod="OwUpdate">
    <SelectParameters>
        <asp:QueryStringParameter Name="blogFriendGroupID" QueryStringField="<%$ Ow:OwConstants.QueryString.ID %>" />
    </SelectParameters>
</owc:OwObjectDataSource>
<owc:OwObjectDataSource ID="BlogFriendGroupParentOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwBlogFriendGroupsEntity"
    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
    SelectMethod="OwGetAll" TypeName="Micronet.OpenWeb.Com.BLL.OwBlogFriendGroupsBLL"
    UpdateMethod="OwUpdate">
    <SelectParameters>
        <asp:Parameter Name="sortClause" Type="String" />
        <asp:Parameter Name="sortDirection" Type="String" />
        <asp:Parameter Name="startRowIndex" Type="Int32" />
        <asp:Parameter Name="maximumRows" Type="Int32" />
    </SelectParameters>
</owc:OwObjectDataSource>
